<p class='statrow' id='hook-box-{$hook.id}'>
	<b>ID:</b> {$hook.id}<br />
	<b>Type:</b> {$hook.type}<br />
	<b>Related Position:</b> {$hook.position}<br />
	<b>Related File:</b> {$smarty.const.HOOKS_PATH}{$hook.file}<br />
	<a href='{$smarty.const.WEB_PATH}/admin.php?app=global&amp;controller=config&amp;act=delHook&amp;id={$hook.id}' class='zurb tiny red' id='hook-link-{$hook.id}'>
		<img src='{$smarty.const.WEB_PATH}/public/img/icons/silk/delete.png' alt='' /> Delete Hook
	</a>
</p>
<script type="text/javascript">
$("#hook-link-{$hook.id}").removeAttr("href")
						  {literal}.click(function() {{/literal}
							$.get("admin.php?app=global&controller=config&act=delHook&id={$hook.id}&ajax=1", function(data) {literal}{
								if(data == "true"){
									niceAlert("Hook deleted. Reload page to see results.", 2);
									{/literal}$("#hook-box-{$hook.id}"){literal}.slideUp(250, function() {
										$(this).html("<span style='color:red;font-family:Trebuchet MS;font-size:13px;font-weight:normal'><img src='{/literal}{$smarty.const.WEB_PATH}{literal}/public/img/icons/silk/cross.png' alt='X' /> Hook deleted. Reload page to see results.").slideDown();
										});{literal}
								}
								else {
									niceAlert(data, 1);
								}
							});
						});{/literal}
</script>